﻿using Abp.AutoMapper;
using Abp.Domain.Entities;
using SingleUserMall.Authorization.Users;
using SingleUserMall.Orders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static SingleUserMall.Dividends.Dividend;

namespace SingleUserMall.Users.VO
{

    [AutoMapFrom(typeof(Order))]
    public class UserDividendVO:Entity<long>
    {
        internal User inFromUser { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 分红商品
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        ///  购买金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 期限（月）
        /// </summary>
        public int Timelimit { get; set; }

        /// <summary>
        /// 分红比例显示界面
        /// </summary>
        public string DividendAmountView { get; set; }

        /// <summary>
        /// 分红比例显示界面 年分红
        /// </summary>
        public string DividendAmountViewByYear { get; set; }

        /// <summary>
        /// 分红类型
        /// </summary>
        public DividendType? DividendTypes { get; set; }

        /// <summary>
        /// 产品期数
        /// </summary>
        public string NumberPeriods { get; set; }

        /// <summary>
        /// 获得利润
        /// </summary>
        public decimal?  Profit { get; set; }

        /// <summary>
        /// 每天分红天数
        /// </summary>
        public int? DividendDay { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PayTime { get; set; }

    }
}
